//
//  SelectTimeTypeCell.m
//  WatermarkCamera
//
//  Created by zhibao on 2023/9/14.
//

#import "SelectTimeTypeCell.h"

@interface SelectTimeTypeCell(){
    UILabel *titleLabel;
}
@end
@implementation SelectTimeTypeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        titleLabel = [UILabel new];
        titleLabel.text = @"备注:";
        titleLabel.font = MY_SCALE_RegularFONT(13);
        titleLabel.textColor = MYBlock;
        titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(80);
            make.right.mas_equalTo(-80);
            make.centerY.equalTo(self.contentView);
        }];
        
        UIView *line = [UIView new];
        line.backgroundColor = MyColor(@"#DEDEE0");
        [self.contentView addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(15);
            make.right.mas_equalTo(-15);
            make.height.mas_equalTo(0.5);
            make.bottom.equalTo(self.contentView);
        }];
    }
    return self;
}

-(void)update:(NSDictionary *)dic{
    titleLabel.text = dic[@"time"];
}
@end
